<!-- meta start -->
<?php $this->load->view('assists/meta');?>
<!-- meta end -->
<!-- header start -->
<?php $this->load->view('assists/header');?>
<!-- header end -->
<div class="am-cf admin-main">
	<!-- menu start -->
	<?php $this->load->view('assists/menu');?>
	<!-- menu end -->
	<!-- content start -->
	<div class="am-g">
		<div style="margin-left: 265px;" class="am-u-lg-5 am-u-md-5 am-u-sm-centered">
			<h1>添加栏目</h1>
			<form action="<?=site_url('Category/doadd')?>" method="post" class="am-form" data-am-validator enctype="multipart/form-data">
				<div class="am-form-group">
			      <label for="doc-select-1">父级栏目</label>
			      <select id="doc-select-1" name="pcid">
			        <option value="0">根目录</option>
			        <?php if(!empty($category_list)){
			        	foreach($category_list as $key => $row){
			        ?>
			        <option value="<?=$row['cid']?>"><?=$row['cname']?></option>
			        <?php }} ?>
			      </select>
			      <span class="am-form-caret"></span>
			    </div>
				<div class="am-form-group">
			      <label for="doc-vld-name-2">栏目名：</label>
			      <input name="cname" type="text" id="doc-vld-name-2"  placeholder="输入栏目名" required/>
			    </div>
				<p><button type="submit" class="am-btn am-btn-primary am-btn-sm am-fl">提交</button></p>
			</form>
		</div>
	</div>
	<!-- content end -->
</div>
<a class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
<!-- footer start -->
<?php $this->load->view('assists/footer');?>
<!-- footer end -->